package com.yonyou.pmclouds.workquality.entity;

public enum WorkqualityCheckTypeEnum {
	
	GENERAL(0,"一般检查"),
	SITE_ACCEPTANCE(1,"现场验收"),
    PARALLEL(2, "平行检验"),
    SITE(3, "旁站记录"),
    PATROL(4, "巡查巡查"),
	COMPREHENSIVE_ACCEPTANCE(5,"综合验收"),
	CONDITION(6,"开工条件"),
	STAGE_CHECK(7,"阶段验收");
	private int value;
	private String desc;

    WorkqualityCheckTypeEnum(int value, String desc) {
		this.value = value;
		this.desc = desc;
	}

	public int getValue() {
		return value;
	}

	public String getDesc() {
		return desc;
	}

    public static String getName(int value) {
        for(WorkqualityCheckTypeEnum workqualityCheckTypeEnum : WorkqualityCheckTypeEnum.values()) {
            if(workqualityCheckTypeEnum.getValue() == value) {
                return workqualityCheckTypeEnum.getDesc();
            }
        }
        return null;
    }
}
